package com.house365.core.view;

import android.app.AlertDialog;
import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;

/**
 *@author py
 *@date 2012-5-28
 *@comment
 */
public abstract class ListDialog extends AlertDialog {

	public ListDialog(Context context) {
		super(context);
	}


	public ListDialog(Context context, int theme) {
		super(context, theme);
		
	}

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		preparedCreate(savedInstanceState);
		//设置显示区域的大小
		//当点击其他区域自动关闭
		setCanceledOnTouchOutside(true);
	}
	public abstract void preparedCreate(android.os.Bundle savedInstanceState);
	@Override
	public void dismiss() {
		super.dismiss();
	}
}
